package com.xl.model;

import java.util.Date;

public class Order {

    private int id;
    private int userId;  // user_id 在数据库中的列
    private Date orderDate;  // order_date 在数据库中的列

    // Getter 和 Setter 方法

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    @Override
    public String toString() {
        return "Order{id=" + id + ", userId=" + userId + ", orderDate=" + orderDate + "}";
    }
}
